package net.wanho.client;

import net.wanho.entity.User;
import net.wanho.vo.AjaxResult;
import org.aspectj.weaver.loadtime.Aj;
import org.checkerframework.checker.units.qual.A;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * Author：汤小洋
 * Date：2024-09-12 13:55
 * Description：<描述>
 */
@Component
public class UserClientFallback implements UserClient{
    @Override
    public String test() {
        return "请求失败！";
    }

    @Override
    public AjaxResult list(String username) {
        return AjaxResult.error("获取用户信息信息！");
    }

    @Override
    public AjaxResult removeById(Integer id) {
        return AjaxResult.error("根据id查询失败");
    }

    @Override
    public AjaxResult save(User user) {
        return AjaxResult.error("添加成功失败");
    }

    @Override
    public AjaxResult update(User user) {
        return AjaxResult.error("更新用户失败！");
    }

    @Override
    public AjaxResult query(Map<String, Object> map) {
        return AjaxResult.error("查询用户失败！");
    }
}
